public class JavaMethod {
    public static void main(String[] args) {
//        hallo(9,16);
        int arr[] = {1,2,3,4,5,6};

        abc(arr);

    }
    /*public  static void hallo(int a,int b){
        if(a>b){
            System.out.println(a);
        }else{
            System.out.println(b);
        }
  }*/
    public  static void abc(int[] arr){
        System.out.print("["+arr[0]+",");
        for (int a=1;a<5;a++){
            System.out.print(arr[a]+",");
        }
        System.out.print(arr[5]+"]");
    }
}
